import props from './genCodeSnippets/props'

const componentName = 'zm-bottom-button-group'

//================ 配置项 ==================
let shortName = componentName
let description = ''
//==========================================

let prefix = `"<${componentName}"`
let suffix = `"></${componentName}>"`
let snippets = ''
Object.keys(props).forEach((k, index, arr) => {
    snippets += `":${k}=\\"${k}\\"",${index === arr.length - 1 ? '' : '\n'}`
})
snippets = `
${prefix},
${snippets}
${suffix}
`
snippets = `
"${shortName}": {
    "prefix": "${shortName}",
    "body":[
        ${snippets}
    ],
    "triggerAssist": false,
    "description": "${description}"
}
`

console.log(snippets)